package com.jspgou.cms.dao;

import java.util.List;

import com.jspgou.common.hibernate3.Updater;
import com.jspgou.common.page.Pagination;
import com.jspgou.cms.entity.ShopMember;

public interface ShopMemberDao {
	public Pagination getPage(Long webId, int pageNo, int pageSize);
	
	public Pagination getPage(Long webId,Long storeId,Boolean isEmployee, int pageNo, int pageSize) ;

	public ShopMember findById(Long id);

	public ShopMember save(ShopMember bean);

	public ShopMember updateByUpdater(Updater<ShopMember> updater);

	public ShopMember deleteById(Long id);
	
	/**
	 * 输入用户名查找是否是唯一的
	 */
	public ShopMember findByUsername(String realName);
	
	public int countByUsername(String realName);
	
	public List<ShopMember> getList(String realName,Long groupId);
	
	public ShopMember findUsername(String username);
}